import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/home/home.vue')
  },
  {
    path: '/demo',
    name: 'Demo',
    component: () => import('../views/demo/demo.vue')
  },
  {
    path: '/user',
    name: 'User',
    component: () => import('../views/user/user.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
